package com.bl.weilan.dao.repository;

import com.bl.weilan.dao.model.CompanyInvesterEntity;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.data.jpa.repository.JpaRepository;

import java.util.List;

public interface CompanyInvesterRepository  extends JpaRepository<CompanyInvesterEntity, String> {
    Page<CompanyInvesterEntity> findByCompanyId(String companyId, Pageable pageable);
    List<CompanyInvesterEntity> findByCompanyId(String companyId);

    void deleteByFinancingId(String id);
}
